import router from '@system.router';
import ClassApi from '../../api/classApi.js'

export default {
    data: {
        baseImageUrl: '',
        myClass: {"cover": "class2.jpg",
            "is_private": 0,
            "create_time": "2022-02-17T13:35:28.000+00:00",
            "signature": "嵌入式就业前景广阔,保险行业、医疗行业、金融行业、车载导航、智能农业等多种行业均可用到它！正因如此，市场对嵌入式方向的人员需求逐渐增多，薪资也是水涨船高，尤其是嵌入式工程师。",
            "className": "C/C++ 嵌入式培训班",
            "classMaster": "樊乐",
            "id": 2,
            "studentNum": 1}
    },
    onInit() {
        //this.myClass = router.getParams().data;
        this.baseImageUrl = this.$app.$def.globalData.baseImageUrl;
        this.id = router.getParams().id;
        ClassApi.getClass(this.id,(data)=>{
            this.myClass = data;
        })
    },
    goBack() {
        router.back();
    },
}
